# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=robin-hood-hashing
pkgver=3.11.5
pkgrel=2
pkgdesc="Fast & memory efficient hashtable based on robin hood hashing"
url="https://github.com/martinus/robin-hood-hashing"
arch="noarch"
license="MIT"
makedepends="cmake"
source="$pkgname-$pkgver.tar.gz::https://github.com/martinus/robin-hood-hashing/archive/refs/tags/$pkgver.tar.gz"
options="!check" # just headers

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DRH_STANDALONE_PROJECT=OFF
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
5f73e089b1e8ec41a9bedded22bc64a789d3a3d04873a2ad9f8cc2970797a473b0f4d3436c2324b3ced85a0d983998a75b1dfaf2b7f3b77235b29806ff2fd489  robin-hood-hashing-3.11.5.tar.gz
"
